<?php
/**
 * Created by PhpStorm.
 * User: azhi
 * Date: 2016/11/30
 * Time: 17:58
 */
 
 header("Content-Type:text/html;charset=utf8"); 

require_once "../yijipay/config.php";
require_once "_inc.php";

if(empty($_REQUEST)){
    //第一次进入：显示帮助
    echo "请点击左侧操作";
}else{

    //处理响应 $_REQUEST['k']=
    $dir = $_REQUEST['k'];  //[page/resp]
    $name = $_REQUEST['n']; //文件名
    $test_file = $dir . "/" . $name . ".php";
    require_once $test_file;


    //处理响应：
    //1) 重定向服务-跳转到页面
    //2) 数据请求服务-返回json结果
    testResponse();
}

